#!/usr/bin/env python
# -*- coding:utf-8 -*-
import uvicorn
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from apps.routers_collections import collections_api
from apps.routers_root import root_api
from apps.routers_items import items_api
from apps.postsearch import postserch


app = FastAPI(tags=["STAC"],summary="managerment",description="STAC_kinetica",docs_url="/stac_docs")
app.add_middleware(CORSMiddleware,allow_origins=["*"],allow_credentials=True,allow_methods=["*"],allow_headers=["*"])

app.include_router(collections_api)
app.include_router(root_api)
app.include_router(items_api)
app.include_router(postserch)




if __name__=="__main__":
    uvicorn.run(app="app:app",host="0.0.0.0",port=8082,reload=True)
